<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStockActivitiesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('stock_activities',function(Blueprint $table){
            $table->increments('id');
            $table->string('name');//活动名称
            $table->integer('user_id');//活动发起人id
            $table->string('profile');//活动简介
            $table->decimal('money',10,2);
            $table->integer('start_time');//活动开始时间
            $table->integer('end_time');//活动结束时间
            //$table->tinyInteger('status')->default(0)->comment('活动状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('activity');
    }
}
